package com.zhuhjay.app.web.controller.monitor;

import com.zhuhjay.common.base.model.domain.Server;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 系统信息控制器
 * @author ZhuHJay
 * @date 2023/2/12 21:39
 */
@Api(tags = "系统监视器")
@RestController
@RequestMapping("/monitor")
public class SystemMonitorController {

    @ApiOperation("系统信息监控")
    @PreAuthorize("@perm.hasPerm('system:monitor:server:info')")
    @GetMapping("server")
    public Server system() {
        return new Server();
    }

}
